import request from "./request"

//一个请求 封装成一个函数
//将整个项目中的所有请求 都集中管理到这个api.js文件中

export let shop_list = () => {
    return request({
        url: "/shop/list",
        method: "GET",
        params: {}
    })
}
export let tuan_list = () => {
    return request({
        url: '/tuan/list',
        method: "GET",
        params: {
            status: 1
        }
    })
}

export function tuan_list1(params = {}) {
    return request.get("/tuan/list", { params })
}

export function user_login(params = {}) {
    return request.post("/user/login", params)
}

export function user_register(params = {}) {
    return request.post("/user/register", params)
}
export function shop_info(params = {}) {
    return request.get("/shop/shopinfo", { params })
}